{include file="header.html"}
<script type="text/javascript">
    $(function(){
        $('#start_time').datepicker({dateFormat: 'yy-mm-dd'});
        $('#end_time').datepicker({dateFormat: 'yy-mm-dd'});
    });
</script>
<div id="rightTop">
    <p>{$lang.wish_template}</p>
    <ul class="subnav">
        <li><span>{$lang.manage}</span></li>
        <li><a class="btn1" href="index.php?app=wish_template&amp;act=add">{$lang.add}</a></li>
    </ul>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <tr class="tatr1">
            <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>
            <td class="table-center"><span ectype="order_by" fieldname="assist_num">{$lang.assist_num}</span></td>
            <td class="table-center"><span ectype="order_by" fieldname="assist_money">{$lang.assist_money}</span></td>
            <td class="table-center"><span ectype="order_by" fieldname="firstphase_num_percentage">{$lang.firstphase_num_percentage}</span></td>
            <td class="table-center"><span ectype="order_by" fieldname="firstphase_money_percentage">{$lang.firstphase_money_percentage}</span></td>
            <td class="table-center"><span ectype="order_by" fieldname="secondphase_num_percentage">{$lang.secondphase_num_percentage}</span></td>
            <td class="table-center"><span ectype="order_by" fieldname="secondphase_money_percentage">{$lang.secondphase_money_percentage}</span></td>
            <td class="table-center"><span ectype="order_by" fieldname="thirdphase_num_percentage">{$lang.thirdphase_num_percentage}</span></td>
            <td class="table-center"><span ectype="order_by" fieldname="thirdphase_money_percentage">{$lang.thirdphase_money_percentage}</span></td>
            <td class="table-center"><span ectype="order_by" fieldname="float_percentage">{$lang.float_percentage}</span></td>
            <td class="table-center"><span ectype="order_by" fieldname="plus_minus">{$lang.plus_minus}</span></td>
            <td class="handler">{$lang.handler}</td>
        </tr>

        <!--{foreach from=$res item=coupon}-->
        <tr class="tatr2">
            <td class="firstCell"><input type="checkbox" class="checkitem" value="{$coupon.coupon_id}" /></td>
            <td class="table-center">{$coupon.assist_num|escape}</td>
            <td class="table-center">{$coupon.assist_money|escape}</td>
            <td class="table-center">{$coupon.firstphase_num_percentage|escape}</td>
            <td class="table-center">{$coupon.firstphase_money_percentage|escape}</td>
            <td class="table-center">{$coupon.secondphase_num_percentage|escape}</td>
            <td class="table-center">{$coupon.secondphase_money_percentage|escape}</td>
            <td class="table-center">{$coupon.thirdphase_num_percentage|escape}</td>
            <td class="table-center">{$coupon.thirdphase_money_percentage|escape}</td>
            <td class="table-center">{$coupon.float_percentage|escape}</td>
            <td class="table-center">{$coupon.plus_minus|escape}</td>
            <td class="handler">
                <a href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=wish_template&amp;act=drop&amp;template_id={$coupon.template_id}');">{$lang.drop}</a>
                <a href="index.php?app=wish_template&amp;act=view&amp;template_id={$coupon.template_id}" >{$lang.view}</a>
            </td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="12">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <!--{if $coupon_list}-->
    <div id="dataFuncs">
        <div class="pageLinks">{include file=page.bottom.html}</div>
    </div>
    <div class="clear"></div>
    <!--{/if}-->

</div>
{include file="footer.html"}